/**
 * @file lua_log.h
 * @author HaoyuWang (136046355@qq.com)
 * @brief 给lua封装的log接口
 * @version 0.1
 * @date 2025-02-19
 * 
 * @copyright Copyright (c) 2025
 * 
 */
#ifndef __LUA_LOG_H__
#define __LUA_LOG_H__

#include "lua.hpp"

#include "log_msg.h"


class LuaLog
{
private:
    /* data */
public:
    LuaLog(/* args */);
    ~LuaLog();

    static void Register(lua_State *L);

    static int LogNative(lua_State *L, LogMsg::EType log_type);
    static int LogInfo(lua_State *L);
    static int LogDebug(lua_State *L);
    static int LogWarn(lua_State *L);
    static int LogError(lua_State *L);
};


#endif  // __LUA_LOG_H__